package com.is2.patchinglife.wrapper;

import android.text.format.Time;

public class GotTrophy {
	
	private boolean gotIT;
	private String date="";
	
	public boolean getGotIT(){return gotIT;}
	public void setGotIT(boolean _got){gotIT = _got;}

	public String getDate(){return date;}
	public void setDate(String _date){
		// if not specified, set current time
		if(_date==null){
			Time now = new Time();
			now.setToNow();
			date = now.format("%Y-%m-%d %H:%M:%S");		// format date
		}else
			date = _date;
	}
	
	public String toString(){
		return "gotIT: "+gotIT+
			   "\ndate: "+date;
	}

}
